package com.dreamlin.lindownload.thread;

import androidx.annotation.NonNull;

import io.realm.Realm;

/**
 * <p> Title: LinThreadBean </p>
 * <p> Description: </p>
 *
 * @author: dreamlin
 * @date: 2020/5/5
 * @version: V1.0.0
 * Created by dreamlin on 2020/5/5.
 */
public interface LinThreadInfoImp {

    /**
     * ID
     *
     * @return
     */
    @NonNull
    String getId();

    void setId(String id);

    @NonNull
    String getUrl();

    void setUrl(String url);

    @NonNull
    String getSavePath();

    void setSavePath(String savePath);

    @NonNull
    String getFileName();

    void setFileName(String fileName);

    long getStart();

    void setStart(long start);

    long getEnd();

    void setEnd(long end);

    long getLength();

    void setLength(long length);

    long getFinished();

    void setFinished(long finished);

    int getAutoRetry();

    void setAutoRetry(int autoRetry);

    long getCallInterval();

    void setCallInterval(long callInterval);

    //删除任务信息
    void delete(Realm realm);

    //更新线程信息
    void update(Realm realm);

}
